package com.wmwu.mybatistest.annotations;

import com.wmwu.mybatistest.enums.DataScope;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author : wmwu
 * @data : 2022/6/23 16:43
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface DataCoverageDataAuth {
    /**
     * 字段信息
     *
     * @return
     */
    String column() default "";

    /**
     * 权限范围
     *
     * @return
     */
    DataScope type();

}
